package com.gxa.controller.investment;

import com.gxa.common.utils.R;
import com.gxa.entity.discrepancy.Device;
import com.gxa.entity.investment.Plan;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Api(tags = "招商计划/部门计划")
@RestController
@RequestMapping("/investment/dept")
public class DeptPlanController {
//    private List<Plan> list;
//    public DeptPlanController(){
//        this.init();
//    }
//    void init(){
//
//        this.list = new ArrayList<>();
//        Date date1 = new Date("2022/1/1");
//        Date date2 = new Date("2022/2/2");
//        Date date3 = new Date("2022/1/3");
//        Date date4 = new Date("2022/2/3");
//        Plan plan = new Plan(1,"11",date1,date2,"22","33",4,"55",3,2,3,0);
//        Plan plan1 = new Plan(2,"11",date3,date4,"22","33",4,"55",3,2,3,0);
//        list.add(plan);
//        list.add(plan1);
//    }
//
//
//    @CrossOrigin(origins = "*", maxAge = 3600)//跨越请求配置
//    @ApiOperation("展示部门计划")
//    @GetMapping ("/list")
//    public R selectAll() {
//
//        return R.ok("successs").put("plans",list);
//    }
//
////    @CrossOrigin(origins = "*", maxAge = 3600)//跨越请求配置
////    @ApiOperation("查询部门计划")
////    @GetMapping("/query")
////    public R queryByCondition(){
////        return R.ok().put("plans",list);
////    }
//
//    @CrossOrigin(origins = "*", maxAge = 3600)//跨越请求配置
//    @ApiOperation("导出部门计划")
//    @GetMapping("/export")
//    public R export(){
//        return R.ok("successs");
//    }
}
